<template>
<div class="app">
      <h1>数字是{{n}}</h1>
      <button @click="n+=1">点我n+1 </button>
</div>
</template>

<script>
export default {
    name:'App',
    data(){
        return{
            n:1
        }
    }
}
</script>

<style>
.app{
    background: pink;
    padding: 30px;
}
</style>